'use strict';

/**
 * @ngdoc function
 * @name jgappApp.controller:TaskChoosedailyCtrl
 * @description
 * # TaskChoosedailyCtrl
 * Controller of the jgappApp
 */
angular.module('jgappApp')
    .controller('TaskChoosedailyCtrl', function(openApi, DataByPage, $location) {
        this.initData = function() {
            this.datelist = new DataByPage(openApi.getlogdatelist);
        };
        this.initData();
        this.goDetail = function(item) {
            $location.path("task/dailylist/date/" + item.name)
        }
        this.godeps = function(item) {
            $location.path("task/choosedeps/daily")
        }
    });
